package com.ruiysoft.service.mdse.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruiysoft.entity.mdse.MerchandiseSpu;
import com.ruiysoft.mapper.mdse.MerchandiseSpuMapper;
import com.ruiysoft.service.mdse.IMerchandiseSpuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liyahui
 * @since 2018-10-27
 */
@Service
public class MerchandiseSpuServiceImpl extends ServiceImpl<MerchandiseSpuMapper, MerchandiseSpu> implements IMerchandiseSpuService {

    @Override
    public IPage<MerchandiseSpu> selectLeftJoinMany(Long shopId, Long catalogId) {
        return new Page<MerchandiseSpu>().setRecords(this.baseMapper.selectLeftJoinMany(shopId, catalogId));
    }
}
